package com.zyong.design.pattern.flyweight.case3;

/**
 * @program: zyong-design-pattern
 * @ClassName: Client
 * @author: zyong
 * @create: 2024-04-06 19:42
 */
public class Client {
    public static void main(String[] args) {
        Piece black1 = PieceFactory.getPiece("black");
        black1.put(1, 1);

        Piece white1 = PieceFactory.getPiece("white");
        white1.put(2, 2);

        Piece black2 = PieceFactory.getPiece("black");
        black2.put(3, 3);

        Piece white2 = PieceFactory.getPiece("white");
        white2.put(4, 4);
    }
}
